package com.example.back.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment implements Serializable {
    /** 主键 **/
    private Integer id;
    /**  评论者id **/
    private Integer userId;
    /*被评论者id*/
    private Integer useredId;
    /*评论内容*/
    private String text ;
    /*评论时间*/
    private String time;
    /*媒体资源路径*/
    private String url;
    /** 帖子id **/
    private Integer postId;

    private Integer parentId;
}
